#ifndef __DRV_PS2_H__
#define __DRV_PS2_H__
#include "stm32f10x.h"


#define PS2_DAT_PORT    GPIOB
#define PS2_DAT_PIN		GPIO_Pin_12
#define PS2_CMD_PORT    GPIOB
#define PS2_CMD_PIN		GPIO_Pin_13
#define PS2_CS_PORT     GPIOB
#define PS2_CS_PIN		GPIO_Pin_14
#define PS2_CLK_PORT    GPIOB
#define PS2_CLK_PIN		GPIO_Pin_15


uint8_t Drv_Ps2_Data_Read(void);
void Drv_Ps2_Cmd_Write(uint8_t data);
void Drv_Ps2_Cs_Write(uint8_t data);
void Drv_Ps2_Clk_Write(uint8_t data);
	
/**
	* @brief  PS2_GPIO初始化
	* @parm   None
	* @retval None
	*/
void Drv_Ps2_Init(void);
	
#endif

